import {
    createAPI
} from '@/api/create_api'
import axios from 'axios'
const api = createAPI()

/**
 * 中心动态
*/
export default {
    // 获取中心动态和热点新闻
    getnewCenter(params) {
        return axios.post('/api/cms/BsCmsContentWebController/searchNewColumn', params)
        // return axios({
        //     method: "GET",
        //     url: '/api/cms/BsCmsContentWebController/searchNewColumn?id=' + params.id,
        //     data: {}
        // })
    },
    //查询新闻公告列表
    getnewList(params) {
        return axios.post('/api/cms/BsCmsContentWebController/searchNewList', params)
        // return axios({
        //     method: "GET",
        //     url: '/api/cms/BsCmsContentWebController/searchNewList?id=' + params.id,
        //     data: {}
        // })
    },
    //查询公告分类列表
    getGgFl(params){
        return axios.post('/api/cms/BsCmsContentWebController/searchNoticeColumn', params)
        // return axios({
        //     method: "GET",
        //     url: '/api/cms/BsCmsContentWebController/searchNoticeColumn?id=' + params.id,
        //     data: {}
        // })
    },
    //专题列表
    getZtList(params){
        return axios.post('/api/cms/BsCmsTopicWebController/searchTopicList', params)
        // return axios({
        //     method: "GET",
        //     url: '/api/cms/BsCmsTopicWebController/searchTopicList?id=' + params.id,
        //     data: {}
        // })
    },
    // 查询相关链接和规上企业列表
    getljlbt(params){
        return axios.post('/api/cms/BsCmsContentWebController/searchLinkList', params)
        // return axios({
        //     method: "GET",
        //     url: '/api/cms/BsCmsContentWebController/searchLinkList?id=' + params.id,
        //     data: {}
        // })
    },
    // 查询煤炭知识列表
    searchMt(params){
        return axios.post('/api/cms/BsCmsContentWebController/searchMeiTanList', params)
        // return axios({
        //     method: "GET",
        //     url: '/api/cms/BsCmsContentWebController/searchMeiTanList?id=' + params.id,
        //     data: {}
        // })
    },
    // 查询新闻和公告详情
    getnewsInfo(params){
        return axios.post('/api/cms/BsCmsContentWebController/searchNewInfo', params)
    },
    //股市行情接口
    getgshx(params){
        return axios.post('/api/cms/BsCmsTopicWebController/searchGuShiHQ', params)
    }
}